<%@ page language="java"  pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@include file="/WEB-INF/pages/common.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>教师列表</title>

<script type="text/javascript">


$(function(){

$("#jsonmap").jqGrid({        
   	url:'${pageContext.request.contextPath}/com/stranger/index/indexAction_queryTeacher.action',
	datatype: "json",
   	colNames:['id','用户名','密码','姓名','性别','籍贯','邮件','家庭住址','电话'],
   	colModel:[
   		{name:'id',index:'id', hidden:true, width:150,align:"center"},
   		{name:'userName',index:'userName', width:150,align:"center"},
   		{name:'password',index:'password', width:150,align:"center"},
   		{name:'realName',index:'realName', width:150,align:"center"},
   		{name:'sex',index:'sex', width:100, align:"center"},
   		{name:'nativeName',index:'nativeName', width:100, align:"center"},		
   		{name:'email',index:'email', width:200,align:"center"},		
   		{name:'address',index:'address', width:250,align:"center"},
   		{name:'tel',index:'tel', width:200, align:"center"}			
   	],
   	rowNum:10,
   	rowList:[10,20,30],
   	pager: '#pjmap',
    viewrecords: true,
    sortorder: "desc",
	jsonReader: {
		repeatitems : false,
		id: "0"
	},
	multiselect: true,
	caption: "老师列表"
	//height: '80%',
	//width:"100%"
});

});

</script>
  </head>
  <body>
  <sms:pageLoading>
<sms:grid url="${pageContext.request.contextPath}/com/stranger/index/indexAction_queryTeacher.action" 
   caption="教师列表" multiselect="true">
	<sms:grid.column name="id" headerName="id" with="0" hidden="true"></sms:grid.column>
	<sms:grid.column name="userName" headerName="用户名" align="center" with="150"></sms:grid.column>
	<sms:grid.column name="password" headerName="密码"  align="center" with="150"></sms:grid.column>
	<sms:grid.column name="realName" headerName="真实姓名" align="center" with="150"></sms:grid.column>
	<sms:grid.column name="sex" headerName="性别" align="center" with="100"></sms:grid.column>
	<sms:grid.column name="nativeName" headerName="籍贯" align="center" with="100"></sms:grid.column>
	<sms:grid.column name="email" headerName="邮箱" align="center" with="200"></sms:grid.column>
	<sms:grid.column name="address" headerName="家庭住址" align="center" with="250"></sms:grid.column>
	<sms:grid.column name="tel" headerName="联系方式" align="center" with="200"></sms:grid.column>
</sms:grid>

<!-- <table id="jsonmap" width="100%"></table>-->
<!-- <div id="pjmap"></div>-->
</sms:pageLoading>
  </body>
</html>
